<template>
  <div class="login-required">
    <a-result
      status="403"
      title="需要登录"
      sub-title="请先登录后再访问此页面"
    >
      <template #extra>
        <a-button type="primary" @click="$router.push('/login')">
          去登录
        </a-button>
        <a-button @click="$router.push('/')">
          返回首页
        </a-button>
      </template>
    </a-result>
  </div>
</template>

<script>
export default {
  name: 'LoginRequired'
}
</script>

<style scoped>
.login-required {
  padding: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 156px);
}
</style> 